<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <f:view>
            <h:form styleClass="loginPanelStyle">
             
                 <p:growl id="msgs" showDetail="true" sticky="false" /> 
                 
                  <p:panel id="panel" header="Login Panel" style="margin-bottom:10px;"> 
                      <center>
                    <h:panelGrid columns="2">
                        <h:outputLabel value="Login :*" for="login" />
                        <p:inputText id="login" value="#{usersMBean.login}" title="Login" required="true" label="Login" requiredMessage="The Login field is required.">
                        <f:validateLength minimum="1" /> 
                        </p:inputText>
                        <h:outputLabel value="Password :*" for="motPasse" /> 
                        <p:password id="motPasse" value="#{usersMBean.password}" title="MotPasse" required="true" requiredMessage="The MotPasse field is required.">
                        <f:validateLength minimum="1" /> 
                        </p:password>
                      
                        <p:commandButton id="Submit" value="Submit" action="#{usersMBean.auth}" ajax="false"/>
                         <p:dialog id="modalDialog" header="Modal Dialog" widgetVar="dlg2" modal="true" height="100">  
                            <h:outputText value="Choose one alternative :" />  
                             <p:commandButton id="RdpModelList" value="RdpModelList" action="#{usersMBean.auth}" ajax="false"/> 
                            <p:commandButton id="GraphicEditor" value="GraphicEditor" action="#{usersMBean.applet}" ajax="false"/> 
                        </p:dialog>
                         
                         
                         <p:tooltip for="Acces" value="Access PetriNet Graphic Editor"/>                  
                    </h:panelGrid>
                      </center>
                  </p:panel>
                 <div align="center">
                 <h:outputLabel value="To Access Petri Net graphic editor without authentication" />
                 </div>
                 <div align="center">
                 <p:commandButton id="Acces" value="Submit without authentication" action="#{usersMBean.applet}" ajax="false"/> 
                 </div>
            </h:form>
           
        </f:view>


    </h:body>
</html>

